# coding: utf-8
class getResonCode:
    def __init__(self):
        self.data={}
    def getSuccess(self):
        self.data["status"]="Success"
        self.data['code'] = 200
        self.data['error'] = 0
        self.data["data"] = {}
        return self.data
    def getFail(self):
        self.data['error'] = 1
        self.data['status'] = "Success"
        self.data['code'] = 201
        return self.data
    def getErorr(self):
        self.data['error'] = 1
        self.data['status'] = "fail"
        self.data['msg'] = '异常'
        self.data['code'] = 500
        return self.data